package org.javagenerate.generator.script;

import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

public class PatternRef {

	private static final Map<String, BasePatternGenerator> PATTERN_GENERATORS = new HashMap<String, BasePatternGenerator>();
	
	public static void addPatternGenerator(String name, BasePatternGenerator basePatternGenerator) {
		PATTERN_GENERATORS.put(name, basePatternGenerator);
	}
	
	public static BasePatternGenerator getBasePatternGenerator(String name) {
		return PATTERN_GENERATORS.get(name);
	}
	
	public static Collection<BasePatternGenerator> getCollection() {
		return PATTERN_GENERATORS.values();
	}
}
